﻿@model IEnumerable<Tesis2.Models.Persona>

@{
    ViewBag.Title = "Resultados";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Nuevo", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Nombres)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ApellidoPaterno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ApellidoMaterno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NumeroDocumento)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Telefono)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TipoDocumentoID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DireccionPersonaID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TipoPersonaID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EstadoPersonaID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.InstitucionPersonaID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UsuarioPersonaID)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nombres)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ApellidoPaterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ApellidoMaterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NumeroDocumento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Telefono)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TipoDocumentoID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DireccionPersonaID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TipoPersonaID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EstadoPersonaID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.InstitucionPersonaID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UsuarioPersonaID)
        </td>
        <td>
            @Html.ActionLink("Editar", "Edit", new { id=item.PersonaID }) |
            @Html.ActionLink("Ver", "Details", new { id=item.PersonaID }) |
            @Html.ActionLink("Eliminar", "Delete", new { id=item.PersonaID })
        </td>
    </tr>
}

</table>
